BigCommerce\Post_Types\Product\Product D

Total Complexity 201
Dependencies 28
Dependents 109
Total lines 1,155
Lines of code 699
Logical lines of code 420
Comment lines 232
Methods 56
Properties 3

Methods 56

Method Rating Maintainability Complexity Lines of code
options()
A
44 10 43
get_source_data()
A
42 9 52
purchase_button()
A
49 9 27
purchase_message()
A
53 9 20
get_redirect_product_link()
A
50 8 27
price_range()
A
54 8 18
get_inventory_level()
A
56 8 17
brand()
S
51 7 27
youtube_videos()
S
52 7 22
get_headless_featured_image()
S
55 7 18
modifiers()
S
52 6 24
get_selected_variant_id()
S
55 6 19
get_thumb_from_cdn()
S
56 6 17
by_product_meta()
S
49 4 32
get_product_options()
S
48 4 32
calculated_price_range()
S
57 5 14
availability()
S
62 5 11
related_products()
S
51 4 25
get_variant_sku()
S
61 4 13
get_gallery_ids()
S
61 4 11
maybe_serialize_from_api()
S
63 4 10
is_purchasable()
S
63 3 11
on_sale()
S
62 3 11
get_reviews_count()
S
68 3 7
get_reviews_sum()
S
68 3 7
get_listing_id()
S
68 3 7
has_options()
S
67 3 8
get_property()
S
65 3 10
get_channel()
S
66 3 8
condition()
S
68 3 7
out_of_stock()
S
64 3 10
related_products_by_category()
S
59 2 14
by_product_id()
S
69 2 6
by_product_sku()
S
69 2 6
purchase_url()
S
70 2 6
retail_price()
S
68 2 7
sku()
S
69 2 7
get_custom_fields()
S
74 2 4
get_reviews()
S
68 2 7
get_channel_id()
S
65 2 9
get_listing_data()
S
68 2 7
get_review_count()
S
70 2 6
json_encode_maybe_from_api()
S
69 2 7
low_inventory()
S
79 1 3
__construct()
S
76 1 4
update_options_data()
S
73 1 5
update_modifier_data()
S
73 1 5
update_listing_data()
S
73 1 5
update_source_data()
S
73 1 5
show_condition()
S
79 1 3
get_product_cache_expiration()
S
78 1 3
bc_id()
S
78 1 3
post_id()
S
82 1 3
is_headless()
S
82 1 3
__get()
S
80 1 3
update_custom_field_data()
S
79 1 3